<script setup lang="ts">
    defineProps(["modelValue"]);
    const emits = defineEmits(["update:model-value"]);
</script>

<template>
    <h3>Child|{{modelValue}}</h3>
    <button @click="emits('update:model-value',modelValue+1)">修改父组件中的num</button>
</template>

<style scoped>

</style>